package org.springblade.modules.mes.unit.service;


import org.springblade.core.mp.base.BaseService;
import org.springblade.modules.mes.unit.entity.UnitEntity;

/**
 * 计量单位
 * @author zhanglianchao
 */
public interface IUnitService extends BaseService<UnitEntity> {

    boolean countByCode(String code, Long id);

    boolean setDefault(Long id);

    UnitEntity getByCode(String code);
}
